<?php
	echo $this->Form->create('Option', array('id'	=> 'submit_form' , 'class'	=> 'form-horizontal', 'novalidate'	=> 'novalidate'));
?>
		<h3 class="block"><?php echo __('Add Option'); ?></h3>
		<input type="hidden" name="data[Option][id]" value="0" />
	<div class="form-group">
		<label class="control-label col-md-2">Name
			<span class="required">*</span>
		</label>
		<div class="col-md-8">
			<?php echo $this->Form->input('name', array('label'	=> false, 
															'div'	=> false, 
															'class'	=> 'form-control',
															'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
														)); 
			?>
														
														
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-md-2">Value
			<span class="required">*</span>
		</label>
		<div class="col-md-8">
			<?php echo $this->Form->input('value', array('label'	=> false, 
															'div'	=> false, 
															'class'	=> 'form-control',
															'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
														)); 
			?>
														
														
		</div>
	</div>
	<div class="form-actions fluid">
		<div class="col-md-offset-3 col-md-9">
			<button class="btn green" type="submit">Submit</button>
			<?php 
				echo $this->Html->link('Cancel', array(
												 'controller'	=> 'options',
												 'action'		=> 'admin_index'
											),
											array('class'	=> 'btn default'));
			?>
		</div>
	</div>
</form>
